home *** CD-ROM | disk | FTP | other *** search
- /*•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- /* VirtualSphere.h
- /*
- /* Implements the Virtual Sphere algorithm for 3D rotation using a 2D input device.
- /* See paper "A Study in Interactive 3-D Rotation Using 2-D Control Devices" by
- /* Michael Chen, S. Joy Mountford and Abigail Sellen published in the ACM Siggraph '88
- /* proceedings (Volume 22, Number 4, August 1988) for more detail. The code here
- /* provides a much simpler implementation than that described in the paper.
- /*
- /* Author: Michael Chen, Human Interface Group / ATG
- /* Copyright © 1987-93 Apple Computer, Inc. All rights reserved.
- /*
- /* Part of Virtual Sphere Sample Code Release v1.1
- /*•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••*/
-
- #ifndef __VIRTUALSPHERE__
- #define __VIRTUALSPHERE__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- #ifndef __GRAPHICS3D__
- #include "Graphics3D.h"
- #endif
-
- pascal void VirtualSphere (Point p,
- Point q,
- Point cueCenter,
- Integer cueRadius,
- Matrix4D rotationMatrix);
-
-
- #endif __VIRTUALSPHERE__
-